//
//  LZPersonInfoTopCell.m
//  DoctorFAQs
//
//  Created by langZai on 2017/2/20.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "LZPersonInfoTopCell.h"

@implementation LZPersonInfoTopCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    
        [self initializeInterface];
    }
    return self;
}


- (void)initializeInterface {
    UILabel *iconLabel = [[UILabel alloc] init];
    iconLabel.text = @"头像";
    iconLabel.font = NEWFONT(15);
    iconLabel.textColor = KHBlackColor;
    iconLabel.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:iconLabel];
    [iconLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.left.equalTo(self.contentView).offset(10*xsIZE);
    }];
    
    _iconImageView = [[UIImageView alloc] init];
    _iconImageView.layer.cornerRadius = 35*xsIZE;
    _iconImageView.clipsToBounds = YES;
    [self.contentView addSubview:_iconImageView];
    [_iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.offset(70*xsIZE);
        make.height.offset(70*xsIZE);
        make.right.equalTo(self.contentView).offset(-10*xsIZE);
        make.centerY.equalTo(self.contentView);
    }];
    
}


@end
